home *** CD-ROM | disk | FTP | other *** search
-
-
- #include <stdio.h>
-
- #define TRUE 1
- #define FALSE 0
-
- #define MAX_TIMERS ... /* number of timers */
- typedef ... TIME; /* how time is actually stored */
- #define VERY_LONG_TIME ... /* longest time possible */
-
- struct timer {
- int inuse; /* TRUE if in use */
- TIME time; /* relative time to wait */
- char *event; /* set to TRUE at timeout */
- } timers[MAX_TIMERS]; /* set of timers */
-
- listing 1
-